const common = require('../../webpack.common');

const config = common({
    entry: {
        app: './main.js'
    }
}, {
    appPath: __dirname,
    addDLLReference: true
});

// @TODO: mavonEditor upgrade to v2
// https://github.com/hinesboy/mavonEditor#webpack
// const highlightJSLangs = require('highlight.js-async-webpack/src/file.lang.hljs');
// const highlightJSMods = highlightJSLangs.reduce((map, k) => {
//     map[k] = ['mavon-editor/dist/js/' + k];

//     return map;
// }, {});
// Object.assign(config.resolve.alias, {
//     'mavon-editor': [
//         'mavon-editor/dist/mavon-editor.js'
//     ]
// });

module.exports = config;
